<script charset="utf-8" src="__JS__/kindeditor/kindeditor-min.js"></script>
<script charset="utf-8" src="__JS__/kindeditor/lang/zh_CN.js"></script>
<script type="text/javascript">
    $(function() {
        editor = KindEditor.create('textarea[class="KindEditor"]',{
            uploadJson : '__APP__/Admin/Index/filesUpload',
            allowFileManager : false
        });    
    });
    function _beforeSubmit(){
        editor.sync('content');
    }
    function _afterComplete(){
        jump(TP_URL,1000);
    }
</script>
<div class="row-fluid">

    <div class="box span12" style="margin-top: 0">

        <div class="box-header well" data-original-title="">
            <h2><i class="icon-edit"></i> Add {$identify}</h2>
        </div>
        <div class="box-content">
            <form class="form-horizontal" action="__URL__/insert" method="post" id="baseForm">
                <fieldset>

                    <div class="control-group">
                        <label class="control-label" for="title">Title</label>
                        <div class="controls">
                            <input class="span11 focused" id="title" type="text" name="title" value="{$row.title}" required>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="identify">Identify</label>
                        <div class="controls">
                            <input class="span11 focused" id="identify" type="text" name="identify" value="{$row.identify}">
                            <span class="help-block">If Identify is empty, it belongs to the default</span>
                        </div>
                    </div>
                    
                    <div class="control-group">
                        <label class="control-label" for="content">Content</label>
                        <div class="controls">
                            <textarea class="span11 KindEditor" name="content" id="content" style="height: 500px;"></textarea>
                        </div>
                    </div>
                    <div class="control-group">
                        <label class="control-label" for="status">Status</label>
                        <div class="controls">
                           <label class="radio">
                            <input type="radio" name="status" id="optionsRadios1" value="1" checked>
                            On
                            </label>
                            <label class="radio">
                            <input type="radio" name="status" id="optionsRadios2" value="0">
                            Off
                            </label>
                        </div>
                    </div>


                    <include file="Public:action"/>
                </fieldset>
            </form>

        </div>
    </div>
</div>